package com.kan.awaits.mongo;

/**
 * 数据库
 * 
 * @author Elva
 * @date 2011-4-14
 * @version 1.0
 */
public interface AwaitsDatabase
{
	/**
	 * @param name
	 *            name of the collection
	 * @param create
	 *            create if the collection is not exist
	 * @return the AwaitsCollection or null if the AwaitsCollection is not exist
	 */
	AwaitsCollection getAwaitsCollection(String name, boolean create);

	/**
	 * @return database info(Database Name,Version...)
	 */
	String getDatabaseInfo();
}
